//
//  LSZGetExchangeInformationManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/5/9.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZGetExchangeInformationManager.h"

@implementation LSZGetExchangeInformationManager
-(id)initWithWithGetExchangeInformation :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayDataDic = dic[@"data"];
        NSMutableArray * mutBigArray = [[NSMutableArray alloc]init];
        for (NSDictionary * dicData in arrayDataDic) {
            LSZGetExchangeInformationMg * manager = [[LSZGetExchangeInformationMg alloc]init];
            manager.introduce  = NullStringjudgment(NSStr(dicData[@"introduce"]));
            manager.is_del     = NullStringjudgment(NSStr(dicData[@"is_del"]));
            manager.id_id      = NullStringjudgment(NSStr(dicData[@"id"]));
            manager.proportion = NullStringjudgment(NSStr(dicData[@"proportion"]));
            manager.status     = NullStringjudgment(NSStr(dicData[@"status"]));
            manager.type       = NullStringjudgment(NSStr(dicData[@"type"]));
            manager.appid      = NullStringjudgment(NSStr(dicData[@"appid"]));
            manager.name       = NullStringjudgment(NSStr(dicData[@"name"]));
            NSMutableArray * AddMoneyarray = [[NSMutableArray alloc]init];
            for (NSString * strMoney in dicData[@"config"]) {
                [AddMoneyarray  addObject:strMoney];
            }
            manager.mutArrayMoney = AddMoneyarray;
            [mutBigArray addObject:manager];
        }
        self.arrayData = mutBigArray;
    }

    return self;
}
@end

@implementation LSZGetExchangeInformationMg
@end
